/*
 * @Author: hcluo
 * @Date: 2020-08-13 15:35:54
 * @LastEditors: hcluo
 * @LastEditTime: 2020-08-29 00:00:02
 * @Description: 政府项目
 */
const moment = require('moment');

moment.locale('zh-cn');
const nav = require('./nav.js');

module.exports = {
  title: '项目文档',
  description: '',
  // head: headConf,
  plugins: {
    // '@vuepress/pwa': {
    //   serviceWorker: true,
    //   updatePopup: {
    //     message: "发现新内容可用.",
    //     buttonText: "刷新"
    //   }
    // },
    '@vuepress/back-to-top': true,
    // '@vuepress/medium-zoom': {Y
    //   selector: '.content__default img',
    // },
    '@vuepress/last-updated': {
      transformer: timestamp => moment(timestamp).format('LLLL'),
    },
    'vuepress-plugin-auto-sidebar': {
      titleMode: 'titlecase',
      nav: true,
      sidebarDepth: 2,
      // collapseList: [
      //   "/frontend/javascript/"
      // ]
    },
  },
  themeConfig: {
    lastUpdated: '上次更新',
    nav,
  },
};
